export default [
  {
    path: "/news",
    meta: {
      title: "党建引领",
      icon: "ep:flag"
    },
    children: [
      {
        path: "/news",
        name: "News",
        component: () => import("@/views/news/index.vue"),
        meta: {
          title: "文章管理",
          icon: "ep:document"
        }
      }
    ]
  },
  {
    path: "/governance",
    meta: {
      title: "五级五长",
      icon: "ep:data-analysis"
    },
    children: [
      {
        path: "/tasks",
        name: "Tasks",
        component: () => import("@/views/tasks/index.vue"),
        meta: {
          title: "任务管理",
          icon: "ep:finished"
        }
      },
      {
        path: "/governance",
        name: "Governance",
        component: () => import("@/views/governance/index.vue"),
        meta: {
          title: "五级治理",
          icon: "ep:data-board"
        }
      },
      {
        path: "/issues",
        name: "Issues",
        component: () => import("@/views/issues/index.vue"),
        meta: {
          title: "反馈问题管理",
          icon: "ep:message-box"
        }
      },
      {
        path: "//task-assignments",
        name: "/TaskAssignments",
        component: () => import("@/views/task-assignments/index.vue"),
        meta: {
          title: "我的待办",
          icon: "ep:message-box"
        }
      }
    ]
  },
  {
    path: "/organizations",
    meta: {
      title: "平安建设",
      icon: "ep:compass"
    },
    children: [
      {
        path: "/cases",
        name: "Cases",
        component: () => import("@/views/cases/index.vue"),
        meta: {
          title: "调解申请",
          icon: "ep:tickets"
        }
      },
      {
        path: "/mediators",
        name: "Mediators",
        component: () => import("@/views/mediators/index.vue"),
        meta: {
          title: "调解人管理",
          icon: "ep:help-filled"
        }
      }
    ]
  },
  {
    path: "/villages",
    meta: {
      title: "乡村振兴",
      icon: "ep:map-location"
    },
    children: [
      {
        path: "/villages",
        name: "Villages",
        component: () => import("@/views/villages/index.vue"),
        meta: {
          title: "村庄管理",
          icon: "ep:map-location"
        }
      },
      {
        path: "/villages/spots",
        name: "VillagesSpots",
        component: () => import("@/views/villages/spots/index.vue"),
        meta: {
          title: "景点管理",
          showLink: false
        }
      },
      {
        path: "/villages/cuisine",
        name: "VillagesCuisine",
        component: () => import("@/views/villages/cuisine/index.vue"),
        meta: {
          title: "美食管理",
          showLink: false
        }
      },
      {
        path: "/villages/culturalPersons",
        name: "VillagesCulturalPersons",
        component: () => import("@/views/villages/culturalPersons/index.vue"),
        meta: {
          title: "文化名人管理",
          showLink: false
        }
      }
    ]
  },
  {
    path: "/merchants",
    meta: {
      title: "商贸互动与排名",
      icon: "ep:promotion"
    },
    children: [
      {
        path: "/merchants",
        name: "Merchants",
        component: () => import("@/views/merchants/index.vue"),
        meta: {
          title: "商户管理",
          icon: "ep:shop"
        }
      }
    ]
  },
  {
    path: "/organizations",
    meta: {
      title: "组织管理",
      icon: "ep:office-building"
    },
    children: [
      {
        path: "/organizations",
        name: "Organizations",
        component: () => import("@/views/organizations/index.vue"),
        meta: {
          title: "组织管理",
          icon: "ep:management"
        }
      }
    ]
  },
  {
    path: "/roles",
    meta: {
      title: "角色管理",
      icon: "ep:user-filled"
    },
    children: []
  },
  {
    path: "/permissions",
    meta: {
      title: "权限管理",
      icon: "ep:key"
    },
    children: [
      {
        path: "/roles",
        name: "Roles",
        component: () => import("@/views/roles/index.vue"),
        meta: {
          title: "角色管理",
          icon: "ep:user-filled"
        }
      },
      {
        path: "/permissions",
        name: "Permissions",
        component: () => import("@/views/permissions/index.vue"),
        meta: {
          title: "权限管理",
          icon: "ep:unlock"
        }
      },
      {
        path: "/users",
        name: "Users",
        component: () => import("@/views/users/index.vue"),
        meta: {
          title: "用户管理",
          icon: "ep:user"
        }
      },
      {
        path: "/leaders",
        name: "Leaders",
        component: () => import("@/views/leaders/index.vue"),
        meta: {
          title: "领导管理",
          icon: "ep:user-filled"
        }
      }
    ]
  },
  {
    path: "/menus",
    meta: {
      title: "系统管理",
      icon: "material-symbols:settings-outline"
    },
    children: [
      {
        path: "/menus",
        name: "Menus",
        component: () => import("@/views/menus/index.vue"),
        meta: {
          title: "菜单管理",
          icon: "ep:menu"
        }
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
